var events = require("events");
var EventEmitter = events.EventEmitter;

var eventEmitter = new EventEmitter();

eventEmitter.on("event1", function(){
	console.log("event1 被触发");
});


eventEmitter.emit("event1");
eventEmitter.emit("event1");